<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!-- meta -->
    <meta charset="utf-8"/>
    <meta name='description' content='CNode：Node.js专业中文社区'>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="keywords" content="nodejs, node, express, connect, socket.io"/>
    <!-- see http://smerity.com/articles/2013/where_did_all_the_http_referrers_go.html -->
    <meta name="referrer" content="always">


    <meta name="author" content="EDP@TAOBAO"/>


    <link title="RSS" type="application/rss+xml" rel="alternate" href="/rss"/>


    <link rel="icon" href="images/cnode_icon_32.png" type="image/x-icon"/>


    <!-- style -->
    <link rel="stylesheet" href="libs/bootstrap/css/bootstrap.css?v=1484034130753" media="all"/>
    <link rel="stylesheet" href="stylesheets/common.css?v=1484034130753" media="all"/>
    <link rel="stylesheet" href="stylesheets/style.css?v=1484034130753" media="all"/>
    <link rel="stylesheet" href="stylesheets/responsive.css?v=1484034130753" media="all"/>
    <link rel="stylesheet" href="stylesheets/jquery.atwho.css?v=1484034130753" media="all"/>
    <link rel="stylesheet" href="libs/editor/editor.css?v=1484034130753" media="all"/>
    <link rel="stylesheet" href="libs/webuploader/webuploader.css?v=1484034130753" media="all"/>
    <link rel="stylesheet" href="libs/code-prettify/prettify.css?v=1484034130753" media="all"/>
    <link rel="stylesheet" href="libs/font-awesome/css/font-awesome.css?v=1484034130753" media="all"/>


    <!-- scripts -->
    <script src="libs/jquery-2.1.0.js?v=1484034130753"></script>
    <script src="libs/lodash.compat.js?v=1484034130753"></script>
    <script src="libs/jquery-ujs.js?v=1484034130753"></script>
    <script src="libs/bootstrap/js/bootstrap.js?v=1484034130753"></script>
    <script src="libs/jquery.caret.js?v=1484034130753"></script>
    <script src="libs/jquery.atwho.js?v=1484034130753"></script>
    <script src="libs/markdownit.js?v=1484034130753"></script>
    <script src="libs/code-prettify/prettify.js?v=1484034130753"></script>
    <script src="libs/qrcode.js?v=1484034130753"></script>
    <script src="javascripts/main.js?v=1484034130753"></script>
    <script src="javascripts/responsive.js?v=1484034130753"></script>


    <title>Index(logined)</title>

    <meta content="_csrf" name="csrf-param">
    <meta content="" name="csrf-token">
</head>
<body>
<!-- navbar -->
<div class='navbar'>
    <div class='navbar-inner'>
        <div class='container'>
            <a class='brand' href='/'>

                <img src="images/cnodejs_light.svg"/>

            </a>

            <form id='search_form' class='navbar-search' action="/search">
                <input type='text' id='q' name='q' class='search-query span3' value=''/>
            </form>
            <ul class='nav pull-right'>
                <li><a href='/'>首页</a></li>
                <li><a href="/my/messages"><span class="big messages_count">9</span>未读消息</a></li>
                <li><a href='/getstart'>新手入门</a></li>
                <li><a href='/api'>API</a></li>

                <li><a href="/about" target="">关于</a></li>


                <li><a href="/setting">设置</a></li>
                <li>
                    <a href="/signout" data-method="post" rel="nofollow">退出</a>
                </li>

            </ul>
            <a class="btn btn-navbar" id="responsive-sidebar-trigger">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
        </div>
    </div>
</div>
<div id='main'>
    <div id="sidebar">

        <div class="panel">

            <div class="header">
                <span class="col_fade">个人信息</span>
            </div>
            <div class="inner">
                <div class="user_card">
                    <div>
                        <a class="user_avatar" href="/user/admin">
                            <img src="//gravatar.com/avatar/29f409534d7a03b3a3d4586ea6ea56d5?size=48" title="admin">
                        </a>
                        <span class="user_name"><a class="dark" href="/user/admin">admin</a></span>

                        <div class="board clearfix">
                            <div class="floor">
                                <span class="big">积分: 175 </span>
                            </div>
                        </div>
                        <div class="space clearfix"></div>
    <span class="signature">
        “

            这家伙很懒，什么个性签名都没有留下。

        ”
    </span>
                    </div>
                </div>


                <script>
                    $(document).ready(function () {
                        $('.follow_btn').click(function () {
                            var $me = $(this);
                            var action = $me.attr('action');
                            var params = {
                                follow_id: '5864b0690570d4fc1f982e6a',
                                _csrf: ''
                            };
                            $.post('/user/' + action, params, function (data) {
                                if (data.status === 'success') {
                                    var $btns = $('.follow_btn');
                                    if (action === 'follow') {
                                        $btns.html('取消关注');
                                        $btns.attr('action', 'un_follow');
                                    } else {
                                        $btns.html('加入关注');
                                        $btns.attr('action', 'follow');
                                    }
                                    $btns.toggleClass('btn-success');
                                }
                            }, 'json');
                        });
                    });
                </script>


            </div>

        </div>


        <div class="panel">
            <div class="inner">
                <a href="/topic/create" id="create_topic_btn">
                    <span class="span-success">发布话题</span>
                </a>
            </div>
        </div>







        <div class="panel">
            <div class="header">
                <span class="col_fade">无人回复的话题</span>
            </div>
            <div class="inner">

                <ul class="unstyled">
                    <li>
                        <div><a class="dark topic_title" href="/topic/58749bc14dd748681f49463e" title="admin33-share-1484037057313">admin33-share-1484037057313</a>
                        </div>
                    </li>
                    <li>
                        <div><a class="dark topic_title" href="/topic/58749bc14dd748681f49463d" title="admin33-ask-1484037057312">admin33-ask-1484037057312</a>
                        </div>
                    </li>
                    <li>
                        <div><a class="dark topic_title" href="/topic/58749bc14dd748681f49463c" title="admin22-share-1484037057311">admin22-share-1484037057311</a>
                        </div>
                    </li>
                    <li>
                        <div><a class="dark topic_title" href="/topic/58749bc14dd748681f49463b" title="admin22-share-1484037057310">admin22-share-1484037057310</a>
                        </div>
                    </li>
                    <li>
                        <div><a class="dark topic_title" href="/topic/58749bc14dd748681f49463a" title="admin-share-1484037057309">admin-share-1484037057309</a>
                        </div>
                    </li>

                </ul>

            </div>
        </div>



        <div class="panel">
            <div class="header">
                <span class="col_fade">积分榜</span>
                &nbsp;
                <a class="dark" href="/users/top100">TOP 100 &gt;&gt;</a>
            </div>
            <div class="inner">

                <ol>
                    <li>
                        <span class="top_score">175</span>
                        <span class="user_name"><a href="/user/admin">admin</a></span>
                    </li>
                    <li>
                        <span class="top_score">95</span>
                        <span class="user_name"><a href="/user/admin22">admin22</a></span>
                    </li>
                    <li>
                        <span class="top_score">0</span>
                        <span class="user_name"><a href="/user/admin33">admin33</a></span>
                    </li>

                </ol>

            </div>
        </div>


        <div class="panel">
            <div class="header">
                <span class="col_fade">友情社区</span>
            </div>
            <div class="inner">
                <ol class="friendship-community">
                    <li>
                        <a href="https://ruby-china.org/" target="_blank">
                            <img src="images/ruby-china-20150529.png">
                        </a>
                    </li>
                    <div class="sep10"></div>
                    <li>
                        <a href="http://golangtc.com/" target="_blank">
                            <img src="images/golangtc-logo.png">
                        </a>
                    </li>
                    <div class="sep10"></div>
                    <li>
                        <a href="http://phphub.org/" target="_blank">
                            <img src="images/phphub-logo.png">
                        </a>
                    </li>
                </ol>
            </div>
        </div>
        <div class="panel">
            <div class="header">
                <span class="col_fade">客户端二维码</span>
            </div>
            <div class="inner cnode-app-download">
                <img width="200" src="//dn-cnode.qbox.me/FtG0YVgQ6iginiLpf9W4_ShjiLfU">
                <br>
                <a href="https://github.com/soliury/noder-react-native" target="_blank">客户端源码地址</a>
            </div>
        </div>

    </div>


    <div id="content">
        <div class="panel">
            <div class="header">

                <a href="/?tab=all"
                   class="topic-tab current-tab">全部</a>

                <a href="/?tab=good"
                   class="topic-tab ">精华</a>

                <a href="/?tab=share"
                   class="topic-tab ">分享</a>

                <a href="/?tab=ask"
                   class="topic-tab ">问答</a>

                <a href="/?tab=job"
                   class="topic-tab ">招聘</a>

            </div>

            <div class="inner no-padding">
                <div id="topic_list">
                    <div class='cell'>

                        <a class="user_avatar pull-left" href="/user/admin22">
                            <img src="//gravatar.com/avatar/29f409534d7a03b3a3d4586ea6ea56d5?size=48"
                                 title="admin22"
                                    />
                        </a>

  <span class="reply_count pull-left">
    <span class="count_of_replies" title="回复数">
      0
    </span>
    <span class="count_seperator">/</span>
    <span class="count_of_visits" title='点击数'>
      2
    </span>
  </span>

  
  
    <span class='last_time pull-right'>
      <span class="last_active_time">4 天前</span>
    </span>


                        <div class="topic_title_wrapper">


                            <span class="topiclist-tab">问答</span>


                            <a class='topic_title' href='/topic/586efc3d496c5d081b652690' title='被收藏被收藏'>
                                被收藏被收藏
                            </a>
                        </div>
                    </div>
                    <div class='cell'>

                        <a class="user_avatar pull-left" href="/user/admin">
                            <img src="//gravatar.com/avatar/29f409534d7a03b3a3d4586ea6ea56d5?size=48"
                                 title="admin"
                                    />
                        </a>

  <span class="reply_count pull-left">
    <span class="count_of_replies" title="回复数">
      6
    </span>
    <span class="count_seperator">/</span>
    <span class="count_of_visits" title='点击数'>
      21
    </span>
  </span>


                        <a class='last_time pull-right' href="/topic/5864b0f10570d4fc1f982e6b#586c6451dfc0a90802b55456">
                            <img class="user_small_avatar"
                                 src="//gravatar.com/avatar/29f409534d7a03b3a3d4586ea6ea56d5?size=48">
                            <span class="last_active_time">6 天前</span>
                        </a>


                        <div class="topic_title_wrapper">


                            <span class="topiclist-tab">问答</span>


                            <a class='topic_title' href='/topic/5864b0f10570d4fc1f982e6b' title='test-1111111111'>
                                test-1111111111
                            </a>
                        </div>
                    </div>

                </div>
                <div class="pagination" current_page="4">
                    <ul>


                        <li><a href="/?tab=all&amp;page=1">«</a></li>





                        <li><a>...</a></li>




                        <li><a href="/?tab=all&amp;page=2">2</a></li>



                        <li><a href="/?tab=all&amp;page=3">3</a></li>



                        <li class="disabled active"><a>4</a></li>






                        <li class="disabled"><a>»</a></li>

                    </ul>
                </div>
                <script>
                    $(document).ready(function () {
                        var $nav = $('.pagination');
                        var current_page = $nav.attr('current_page');
                        if (current_page) {
                            $nav.find('li').each(function () {
                                var $li = $(this);
                                var $a = $li.find('a');
                                if ($a.html() == current_page) {
                                    $li.addClass('active');
                                    $a.removeAttr('href');
                                }
                            });
                        }
                    });
                </script>

            </div>

        </div>
    </div>

</div>
<div id='backtotop'>回到顶部</div>
<div id='footer'>
    <div id='footer_main'>
        <div class="links">
            <a class='dark' href='/rss'>RSS</a>
            |
            <a class='dark' href='https://github.com/cnodejs/nodeclub/'>源码地址</a>
        </div>

        <div class='col_fade'>
            <p>CNode 社区为国内最专业的 Node.js 开源技术社区，致力于 Node.js 的技术研究。</p>

            <p>服务器搭建在
                <a href="https://www.digitalocean.com/?refcode=eba02656eeb3" target="_blank"
                   class="sponsor_outlink" data-label="digitalocean">
                    <img src="images/digitalocean.png" title="digitalocean"
                         alt="digitalocean" width="92px"/>
                </a>
                ，存储赞助商为
                <a href="http://www.qiniu.com/?ref=cnode" target="_blank"
                   class="sponsor_outlink" data-label="qiniu_bottom">
                    <img src="images/qiniu.png" title="七牛云存储"
                         alt="七牛云存储" width="115px"/>
                </a>
            </p>

            <p>新手搭建 Node.js 服务器，推荐使用无需备案的 <a href="https://www.digitalocean.com/?refcode=eba02656eeb3">DigitalOcean(https://www.digitalocean.com/)</a>
            </p>
        </div>


    </div>
</div>
<div id="sidebar-mask"></div>


</body>
</html>
